package com.hwl.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hwl.server.entity.Department;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author long
 * @since 2021-11-28
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 递归获取所有部门
     */
    List<Department> getAllDepartments(Integer id);

    /**
     * 调用存储过程添加部门
     */
    void addDep(Department department);

    /**
     * 调用存储过程删除部门
     */
    void deleteDep(Department department);
}
